package app.r_teenus.backend.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.transaction.annotation.Transactional;

@Entity
@Table(name="CONTACT_TYPE")
public class ContactType implements Serializable{

	private static final long serialVersionUID = 1996893608810290737L;
	
	private Integer id;
	private String typeName;
	
    /**
     * Gets id (primary key).
     */
    @Id
    @Column(name = "CONTACT_TYPE")
    @GeneratedValue(strategy=GenerationType.AUTO)
	public Integer getId() {
		return id;
	}
    
    /**
     * Sets id (primary key).
     */
	public void setId(Integer id) {
		this.id = id;
	}  
	
    /**
     * Gets type name.
     */
    @Column(name = "TYPE_NAME")
	public String getTypeName() {
		return typeName;
	}
    
    /**
     * Sets type name.
     */
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
}
